package cn.samler.project.guestbook.model.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class MessageCreateRequest {
    @NotNull(message = "参数错误")
    @NotEmpty(message = "主题不能为空")
    private String title;

    @NotNull(message = "参数错误")
    @NotEmpty(message = "内容不能为空")
    private String content;
}
